import request from "@/utils/request";

//获取船闸所信息  没调好呢2023-4-6
//获取船闸所下拉列表 带权限 2023-5-23 ok
//{parentId : 1}
export function getCzsOptionsList(data){
    return request({
      url:'/yxdd/czzs/getDropDownCz',
      method:'post',
      data: data
    })
}

//获取船闸所信息 不带权限 所有
export function allCzsSelect(data) {
  return request({
    url: '/user-center/jggl/getCzsList',
    method: 'post',
    data: data
  })
}

export function getCbzdzcList(data){
  return request({
    url:'/yxdd/cbzdzc/getList',
    method:'post',
    data: data
  })
}

export function getCbzdzcDetail(data){
  return request({
    url:'/yxdd/cbzdzc/getDetail',
    method:'post',
    data: data
  })
}

//根据图片文件id 返回url fileIds 逗号分割
// let r = await getUrlByFileId('3283913364571648,3283911329302016')
export function getUrlByFileId(fileIds){
  return request({
    url: '/yxdd/file/fileIdGetUrl/'+ fileIds,
    data: {},
    method:'post',
  })
}

export function removeZdzc(data){
  return request({
    url:'/yxdd/cbzdzc/remove',
    method:'post',
    data: data
  })
}

export function checkShip(data){
  return request({
    url: '/yxdd/ship/checkShipBycmch',
    data,
    method:'post',
  })
}

export function addZdzc(data){
  return request({
    url: '/yxdd/cbzdzc/addZd',
    data,
    method:'post',
  })
}